// user/User.cpp
#include "User.h"

// 构造函数的实现
User::User(const string& username, const string& password_hash,int id, Role role) : username(username), password_hash(password_hash),id(id),role (role) {}

string User::getUsername() const{
    return username;
}
string User::getPasswordHash() const{
    return password_hash;
}
int User::getId() const{
    return id;
}

Role User::getRole() const{
    return role;
}

